﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>APP内容管理平台--管理员登录</title>
<link href="login_images/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript">
	$(function(){
		$('.captcha').focus(function(){
			$('.yzm-box').show();
			});
			
		$('.captcha').focusout(function(){
			$('.yzm-box').hide();
			});
		})
</script>
 <script type="text/javascript">  
    function changeValidateCode(obj) {  
           //获取当前的时间作为参数，无具体意义  
        var timenow = new Date().getTime();  
           //每次请求需要一个不同的参数，否则可能会返回同样的验证码  
        //这和浏览器的缓存机制有关系，也可以把页面设置为不缓存，这样就不用这个参数了。  
        obj.src="randomAction.action?d="+timenow;  
    }  
</script> 
</head>

<body>
<div id="wrap">
	
	<div id="header"> </div>
    <div id="content-wrap">
    	<div class="space"> </div>
   	  <form action="loginAction!login.action" method="post" theme="simple"><div class="content">
        <div class="field"><label>账　户：</label><input class="username" name="loginName" value="${loginName}" type="text" /> <div align="center"> <s:fielderror cssStyle="color:red"><s:param>loginNameError</s:param></s:fielderror></div></div>
		<div class="field"><label>密　码：</label><input class="password" name="password" value="${password}" type="password" /><div align="center"><s:fielderror cssStyle="color:red"><s:param>loginPasswordError</s:param></s:fielderror></div></div>
        <div class="field"><label>验证码：</label><input class="captcha"  name="captcha" maxlength="6" name=""  type="text" /><div align="center"><s:fielderror cssStyle="color:red"><s:param>validateRandom</s:param></s:fielderror></div><br />
        <div class="yzm-box">
          <img class="validate" src="randomAction.action" style="width:150px; height:30px; background:#999;" onclick="changeValidateCode(this)" alt="更换图片"/> 
        </div></div>
        <div class="btn"><input name="" type="submit" class="login-btn" value="" /></div>
      </div></form>
    </div>
    <div id="footer"> </div>
</div>
</body>
</html>
